package com.chongzi.cloud;

public class code4 {
    public void moveZeroes(int[] nums) {
        int left=0;
        for (int right = 0; right < nums.length; right++) {
            if (nums[right]!=0){
                int tmp=nums[right];
                nums[right]=nums[left];
                nums[left]=tmp;
                ++left;

            }

        }
    }
}
